﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace ServiceDeskInterop
{

    [DataContract]
    public enum TaskStateDTO
    {
        [EnumMember]
        Open,
        [EnumMember]
        InProgress,
        [EnumMember]
        Closed
    }
    [DataContract]
    public class TaskDTO
    {
        public TaskDTO(Guid guid, string description, TaskStateDTO taskStatus, Guid? userGuid)
        {
            TaskGuid = guid;
            Description = description;
            TaskStatus = taskStatus;
            UserGuid = userGuid;
        }
        [DataMember]
        public Guid TaskGuid;
        [DataMember]
        public string Description;
        [DataMember]
        public TaskStateDTO TaskStatus;
        [DataMember]
        public Guid? UserGuid;
    }

}
